package team.first.moiveapiv1.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.domain
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@ApiModel(value="movie")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "movie")
public class Movie implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "电影编号", example = "1291543")
    private Integer id;

    @TableField(value = "original_title")
    @ApiModelProperty(value = "电影片名", example = "功夫")
    private String originalTitle;

    @TableField(value = "chinese_title")
    @ApiModelProperty(value = "电影中文名", example = "功夫")
    private String chineseTitle;

    @TableField(value = "aka")
    @ApiModelProperty(value = "电影别名", example = "功夫3D/Kung Fu Hustle")
    private String aka;

    @TableField(value = "year")
    @ApiModelProperty(value = "上映年份", example = "2004")
    private Integer year;

    @TableField(value = "region")
    @ApiModelProperty(value = "地区", example = "中国大陆")
    private String region;

    @TableField(value = "duration")
    @ApiModelProperty(value = "电影片长", example = "123")
    private String duration;

    @TableField(value = "language")
    @ApiModelProperty(value = "语言", example = "粤语")
    private String language;

    @TableField(value = "pub_date")
    @ApiModelProperty(value = "上映时间", example = "23/12/2004")
    private String pubDate;

    @TableField(value = "summary")
    @ApiModelProperty(value = "电影简介", example = "1940年代的上海，自小受尽欺辱的街头混混阿星（周星驰）为了能出人头地，" +
            "可谓窥见机会的缝隙就往里钻，今次他盯上行动日益猖獗的黑道势力“斧头帮”，想借之大名成就大业。" +
            "阿星假冒“斧头帮”成员试图在一个叫“猪笼城寨”的地方对居民敲诈，不想引来真的“斧头帮”与“猪笼城寨”居民的恩怨。" +
            "“猪笼城寨”原是藏龙卧虎之处，居民中有许多身怀绝技者（元华、梁小龙等），他们隐藏于此本是为远离江湖恩怨，" +
            "不想麻烦自动上身，躲都躲不及。而在观战正邪两派的斗争中，阿星逐渐领悟功夫的真谛。")
    private String summary;

    @TableField(value = "poster_url")
    @ApiModelProperty(value = "分值", example = "9")
    private String posterUrl;

    @TableField(value = "rating")
    @ApiModelProperty(value = "分值", example = "9")
    private Double rating;

    @TableField(value = "poster")
    @ApiModelProperty(value="电影海报名", example = "1291543.jpg")
    private String poster;

    private static final long serialVersionUID = 1L;
}